@echo off
setlocal enabledelayedexpansion

for %%i in (*.ixx) do (
    set "oldname=%%i"
    set "newname=%%~ni.hpp"
    ren "!oldname!" "!newname!" 
)

echo 重命名完成！